import { createPinia } from 'pinia'
import useAppStore from './modules/app'
import useUserStore from './modules/user'
import useTabBarStore from './modules/tab-bar'
import useLoadingStore from './modules/app/loading'
const pinia = createPinia()
pinia.use(({ store }) => {
  store.route = markRaw(useRoute())
})
export { useAppStore, useUserStore, useTabBarStore, useLoadingStore }
export default pinia
